import { EnumSchoolNature, EnumSchoolFeature, EnumSchoolState } from "@/api";
import { convertEnumToOptions } from "@/utils/queryConversion";

export const pageColumns = [
  {
    title: "ID",
    dataIndex: "id",
    key: "id",
    sorter: true,
    width: 50,
  },
  {
    title: "院校名称",
    dataIndex: "name",
    key: "name",
    width: 200,
  },
  {
    title: "别名",
    dataIndex: "byName",
    key: "byName",
    width: 100,
  },
  {
    title: "办学类型",
    dataIndex: "nature",
    key: "nature",
    width: 100,
  },
  {
    title: "院校特色",
    dataIndex: "feature",
    key: "feature",
    width: 150,
  },
  {
    title: "操作",
    key: "action",
    dataIndex: "action",
    width: 100,
  },
];

export const EnumIsShow = [
  { label: "显示", value: true },
  { label: "隐藏", value: false },
];

export const SchoolNatureOption = convertEnumToOptions(EnumSchoolNature);
export const SchoolFeatureOptions = convertEnumToOptions(EnumSchoolFeature);
export const SchoolStateOptions = convertEnumToOptions(EnumSchoolState);
